package com.itbaizhan.openhis.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itbaizhan.openhis.domain.User;
import com.itbaizhan.openhis.dto.UserDto;
import com.itbaizhan.openhis.vo.DataGridView;

import java.util.List;

/**
* @author Administrator
* @description 针对表【sys_user(用户信息表)】的数据库操作Service
* @createDate 2022-07-14 19:12:45
*/
public interface UserService extends IService<User> {
    User queryUserByPhone(String phone);

    DataGridView listUserForPage(UserDto userDto);

    int addUser(UserDto userDto);

    int updateUser(UserDto userDto);

    int deleteUserByIds(Long[] userIds);

    void resetPwd(Long[] userIds);

    List<User> queryUsersNeedScheduling(Long userId, Long deptId);

    List<User> selectAllUser();
}
